<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/Public/dataapi/js/jquery.min.js"></script>
    <script src="/Public/dataapi/js/jquery.easyui.min.js"></script>
    <script src="/Public/dataapi/js/jquery.easyui.mobile.js"></script>
    <script src="/Public/dataapi/js/easyloader.js"></script>
</head>
<body>
<table id="dg"></table>
<script>
    $('#dg').datagrid({
        url:'http://www.testdata.net/DataAPI.php/excle/',
        columns:[[
            {field:'code',title:'Code',width:100},
            {field:'name',title:'Name',width:100},
            {field:'price',title:'Price',width:100,align:'right'}
        ]]
    });
</script>
</body>
</html>